
$(function(){
	readUname();
	showContentTip();
	loadWelcome();
});


function loadWelcome(){
	$("#mainFrame").load("welcome.html");
}


function showContentTip(){
	layer.open({
		type:0,
		title:"系统提示",
		area:'auto',
		icon:6,
		time:2000,
		anim:2,
		offset:'auto',
		content:"亲爱的"+sessionStorage.getItem("uname")+" ，欢迎回来~"
	/*layer.msg("欢迎你~,"+uname,{
	icon:6,
	shade:.3,
	time:2000*/
});
}



function drawer(){
	layer.open({
		type:2,
		title:"修改密码",
		shadeClose: true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['500px','350px'],
		content:["modifyUpwd.html","no"],
		btn:["确定"],
		yes:function(){
			layer.msg("密码修改成功！",{
				icon:1
			});
		}
	});
}




function readUname(){
	var uname=sessionStorage.getItem("uname");
	$("#uname").html(uname);

}


/*function readRgUname(){
	var uname=sessionStorage.getItem("rguname");
	$("#rguname").html(uname);
layer.msg("欢迎你~,"+rguname,{
	icon:6,
	shade:.3,
	time:2000
});
}*/





function loadIndex(){
	$("#mainFrame").load("index.html");
}
function loadPersonCenter(){
	$("#mainFrame").load("dataDictionaryManage.html")
}

function sysExit(){
	layer.confirm("是否确认退出系统？",{
		btn:["确定","取消"],
		icon:3,
		shade:.3,
		anim:6
	},function(){
		window.location.href="login.html";
	});
}

/*各个功能模块的调用函数*/
function moneyAssetManage(){
	$("#mainFrame").load("assetCirculManage/moneyAssetManage.html");
}
function houseAssetManage(){
	$("#mainFrame").load("assetCirculManage/houseAssetManage.html");
}
function loadPaintAssetManage(){
	$("#mainFrame").load("assetCirculManage/paintAssetManage.html");
}
function loadCarAssetManage(){
	$("#mainFrame").load("assetCirculManage/carAssetManage.html");
}
function loadDataDict(){
	$("#mainFrame").load("baseInfoManage/dataDictionaryManage.html");
}
function loadsysMoney(){
	$("#mainFrame").load("baseInfoManage/sysMoney.html");
}
function loadCompanyEmployee(){
	$("#mainFrame").load("baseInfoManage/CompanyEmployee.html");
}
function loadSystemUser(){
	$("#mainFrame").load("baseInfoManage/SystemUser.html");
}
function loadPaintAssetInfo(){
	$("#mainFrame").load("assetInfoManage/paintAssetInfo.html");
}
function loadMoneyAssetInfo(){
	$("#mainFrame").load("assetInfoManage/moneyAssetInfo.html");
}
function loadCarAssetInfo(){
	$("#mainFrame").load("assetInfoManage/carAssetInfo.html");
}
function loadHouseAssetInfo(){
	$("#mainFrame").load("assetInfoManage/houseAssetInfo.html");
}